home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / 3DTOSHI2.ZIP / mpgfx / source / gfxdisp.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-25  |  1.1 KB  |  51 lines

  1.  
  2. // gfxdisp.cpp
  3.  
  4. #include "stdgfx.h"
  5. #include "gfxdisp.h"
  6.  
  7. DISPLAYDRIVER::DISPLAYDRIVER () : DRIVER ()
  8.   {
  9.     MagH = 1;  
  10.     DivH = 1;  
  11.     MagV = 1;  
  12.     DivV = 1;  
  13.     Info = (BITMAPINFO*)malloc(sizeof(BITMAPINFOHEADER)+sizeof(RGBQUAD)*256);
  14.   } // End of Constructor for DISPLAYDRIVER
  15.  
  16. DISPLAYDRIVER::~DISPLAYDRIVER ()
  17.   {
  18.     if (Info!=NULL)
  19.       delete Info;
  20.     Info = NULL;
  21.   } // End of Destructor for DISPLAYDRIVER
  22.  
  23. VOID DISPLAYDRIVER::Clear ( HDISPLAY hDisplay, LONG Color )
  24.   {
  25.     if (hDisplay)
  26.       {}
  27.     if (Color)
  28.       {}
  29.   } // End of Clear for DISPLAYDRIVER
  30.  
  31. VOID DISPLAYDRIVER::SetScaleFactor ( LONG MH, LONG DH, LONG MV, LONG DV )
  32.   {
  33.     MagH = MH;  
  34.     DivH = DH;  
  35.     MagV = MV;  
  36.     DivV = DV;  
  37.   } // End of SetScaleFactor for DISPLAYDRIVER
  38.   
  39. VOID DISPLAYDRIVER::DrawText ( HDISPLAY hDisplay, STRING Text, LONG x, LONG y,
  40.                                COLOR Color )
  41.   {
  42.     if (hDisplay)
  43.       {}
  44.     if (Text)
  45.       {}
  46.     if (Color)
  47.       {}
  48.     if (x&y)
  49.       {}
  50.   } // End of DrawText for DISPLAYDRIVER
  51.